package com.haoji.upload.controller;

import com.haoji.upload.common.aop.log.SysLogger;
import com.haoji.upload.common.constant.Constant;
import com.haoji.upload.common.dto.WebResponse;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * @program: upload
 * @description:
 * @author: xiaolei
 * @create: 2021-04-15 11:43
 **/
@Slf4j
@RestController
@RequestMapping("/demo")
public class DemoController {

    @SysLogger(type = Constant.SysLogType.ADD)
    @GetMapping("/test")
    @ApiOperation(value = "测试接口", notes = "测试接口", consumes = "application/json", produces = "application/json")
    public WebResponse<String> test(String demo){
        return WebResponse.success("登录成功");
    }


}
